package sun;

import java.sql.SQLException;
import java.util.List;

import bao.Userdao;
import vo.Name;

public class custemen {
	Userdao c=new Userdao();
	public Name login(String userName,String mima){
		Name s=c.find(userName, mima);
		return s;
	}
	public List<Name> fin() {
		List<Name> gy=c.svm();
		return gy;
	}
	public void save(Name c2) throws SQLException {
		c.save(c2);
	}
	
}
